﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebAppActivate.aspx.cs"
    Inherits="ServBus.ListForm2010.AdministrationPages.WebAppActivate,$SharePoint.Project.AssemblyFullName$"
    MasterPageFile="~/_admin/admin.master" %>

<%@ Import Namespace="Microsoft.SharePoint.Utilities" %>
<%@ Register TagPrefix="ServBus" Namespace="ServBus.ListForm2010.Controls" Assembly="ServBus.ListForm2010, Version=1.0.0.0, Culture=neutral, PublicKeyToken=df5827f77359eb0a" %>
<asp:Content ContentPlaceHolderID="PlaceHolderTitleBreadcrumb" runat="server">
    <ServBus:BreadCrumbNav runat="server" ID="bcNav" IsCentralAdmin="true" />
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <asp:Literal runat="server" Text="<%$SBIBLF2010Resources:ServBus.ListForm2010.Common.Resources|AdminPages,WebApp_Activation_Title %>"></asp:Literal>
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    <asp:Literal runat="server" Text="<%$SBIBLF2010Resources:ServBus.ListForm2010.Common.Resources|AdminPages,WebApp_Activation_Title %>"></asp:Literal>
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
    <asp:Literal runat="server" Text="<%$SBIBLF2010Resources:ServBus.ListForm2010.Common.Resources|AdminPages,WebApp_Activation_Desc %>"></asp:Literal>
</asp:Content>
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <asp:Repeater runat="server" ID="rptWebApps">
        <HeaderTemplate>
            <table width='100%' border='0' cellpadding='0' cellspacing='0'>
                <colgroup>
                    <col width='84%' />
                    <col width='8%' />
                    <col width='8%' />
                </colgroup>
                <tr>
                    <th scope="col" class="ms-vh2" style="padding-bottom: 4px">
                        <asp:Literal ID="Literal4" runat="server" Text="<%$Resources:spadmin,multipages_WebApplication_title%>"></asp:Literal>
                    </th>
                    <th scope="col" class="ms-vh2" style="padding-bottom: 4px">
                        &nbsp;
                    </th>
                    <th scope="col" class="ms-vh2" style="padding-bottom: 4px">
                        <asp:Literal ID="Literal5" runat="server" Text="<%$Resources:wss,ManageFeatures_StatusHeading%>" />
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr style="background-color: #f9f9f9">
                <td class="ms-vb2" style="padding: 4px">
                    <%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, "WebApp", "")) %>
                </td>
                <td style="padding: 4px">
                    <asp:Button runat="server" ID="btnAction" CssClass="ms-ButtonHeightWidth" UseSubmitBehavior="false"
                        OnCommand="btnAction_Click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "WebAppId") %>'
                        OnClientClick='<%# DataBinder.Eval(Container.DataItem, "ConfirmJs") %>' Text='<%# DataBinder.Eval(Container.DataItem, "ButtonText") %>' />&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td style="padding: 4px">
                    <div class="ms-vb2 ms-featurestatus">
                        <span class="ms-featurestatustext">
                            <%# DataBinder.Eval(Container.DataItem, "StatusUI") %></span>&nbsp;
                    </div>
                </td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr style="background-color: #e9e9e9">
                <td class="ms-vb2" style="padding: 4px">
                    <%# SPHttpUtility.HtmlEncode(DataBinder.Eval(Container.DataItem, "WebApp", "")) %>
                </td>
                <td style="padding: 4px">
                    <asp:Button runat="server" ID="btnAction" CssClass="ms-ButtonHeightWidth" UseSubmitBehavior="false"
                        OnCommand="btnAction_Click" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "WebAppId") %>'
                        Text='<%# DataBinder.Eval(Container.DataItem, "ButtonText") %>' />&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td style="padding: 4px">
                    <div class="ms-vb2 ms-featurestatus">
                        <span class="ms-featurestatustext">
                            <%# DataBinder.Eval(Container.DataItem, "StatusUI") %></span>&nbsp;
                    </div>
                </td>
            </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <asp:Label runat="server" ID="lblError" CssClass="ms-formvalidation" />
</asp:Content>
